<?php

/**
 *吹牛用户信息
 */
$sql = "
CREATE TABLE IF NOT EXISTS " . tablename('tim_cowuser') . " (
`user_id` int(10) unsigned  AUTO_INCREMENT,
`uniacid` int(11) NOT NULL,
`user_name` varchar(20) NOT NULL,
`user_photo` varchar(200) NOT NULL,
`user_score` int(10) NOT NULL,
`user_phone` varchar(20) NOT NULL,
 PRIMARY KEY (`user_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;";
pdo_query($sql);

/**
 *爱吹牛设置
 */
$sql = "
CREATE TABLE IF NOT EXISTS " . tablename('tim_cowsetting') . " (
`id` int(10) unsigned  AUTO_INCREMENT,
`uniacid` int(11) NOT NULL,
`title` varchar(100),
`logo` varchar(100),
`index_intro` varchar(200),
`counttime` int(5),
`goods` varchar(10),
`tips` varchar(200) NOT NULL,
`rules` text,
`share_title` varchar(100),
`share_icon` varchar(200),
`share_content` varchar(200),
 PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;";
pdo_query($sql);






